inspector: Remove some dead code
authorMatthias Clasen <mclasen@redhat.com>
Sun, 27 Dec 2015 01:12:04 +0000 (20:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 27 Dec 2015 02:42:10 +0000 (21:42 -0500)
Since commit bffeae6203ffe5ea91988d4439571568abc95ab7, the
tree path is not used for anything useful anymore, so do away
with it entirely.

gtk/inspector/object-tree.c

index 8806e9a801c6bcb9498bf3408d31dba740327fad..6737448f147e55cfa7892d309a43f0e0ef47be4d 100644 (file)
@@ -979,7 +979,6 @@ gtk_inspector_object_tree_append_object (GtkInspectorObjectTree *wt,
                                          const gchar            *name)
 {
   GtkTreeIter iter;
-  GtkTreePath *path;
   const gchar *class_name;
   gchar *classes;
   const gchar *label;
@@ -1069,9 +1068,6 @@ gtk_inspector_object_tree_append_object (GtkInspectorObjectTree *wt,
 
   g_free (classes);
 
-  path = gtk_tree_model_get_path (GTK_TREE_MODEL (wt->priv->model), &iter);
-  gtk_tree_path_free (path);
-
   g_object_weak_ref (object, gtk_object_tree_remove_dead_object, wt);
   
   data.wt = wt;